package com.zdj.data.datasource;

import com.zdj.data.entity.Login;
import com.zdj.data.net.RetrofitClient;
import com.zdj.data.services.ILoginService;

import java.util.List;

import retrofit2.adapter.rxjava.Result;
import rx.Observable;

/**
 * Created by dengjie zhang on 2016/10/11.
 */

public class LoginCouldDataSource extends BaseDataStore implements ILoginDataStore{
    @Override
    public Observable<List> entityList(String... strings) {
        return null;
    }

    @Override
    public Observable<Result> entityDetails(int id, String... strings) {
        return null;
    }

    @Override
    public Observable<Result> getEntity() {
        return null;
    }

    @Override
    public Observable<Result<Login>> login(String username, String password) {
        return RetrofitClient.createService(ILoginService.class).login(username,password);
    }
}
